-- GENERATED SPELL FOR [Onyxian Whelp] --


function spell0_11262(pUnit, Event) --@Teleport to Player,n/a--
pUnit:FullCastSpellOnTarget(21543,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11262', 623, 1)
end

function Sorts_11262(pUnit, Event)
local choix_sorts_11262 = math.random(0, 0)
if choix_sorts_11262 == 0 then
pUnit:RegisterEvent('spell0_11262', 1, 1)
end
end

function mob11262_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11262', math.random(1500, 3000), 1)
end

function mob11262_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11262_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11262_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11262, 1, 'mob11262_Action')
RegisterUnitEvent(11262, 2, 'mob11262_Leave')
RegisterUnitEvent(11262, 3, 'mob11262_Kill')
RegisterUnitEvent(11262, 4, 'mob11262_Die')
